<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<html>
  <head>
   <base href="<%=basePath%>">
    <title>工资管理系统工资信息列表</title>
    <link rel="styleSheet" href="css/body.css" type="text/css" media="all" />
  </head>
  <%Integer grade = (Integer)session.getAttribute("grade"); %>
  <body>
  	<table>
  		<caption>工资管理系统工资信息列表</caption>
  		<tr>
  			<th>信息列表序号</th>
  			<th>工号/帐号</th>
  			<th>基础工资</th>
  			<th>却勤次数</th>
  			<th>奖金</th>
  			<th>最终工资</th>
  			<th>日 期</th>
  			<% if (grade == 2) { %>
  			<th>是否已发</th>
  			<th>最终结算</th>
  			<th>确认到帐</th>
  			<%} %>
  		</tr>
  		
  		<s:iterator value="salaryList" id="salarylist" status="status">
  		<tr onmouseout="this.bgColor='white'" onmouseover="this.bgColor='#66CCFF'">
  				<td>${salarylist.said}</td>
	  			<td>${salarylist.workid}</td>
	  			<td>${salarylist.salary}</td>
	  			<td>${salarylist.absence}</td>
	  			<td>${salarylist.bonus}</td>
	  			<td>${salarylist.finalsalary}</td>
	          	<td width="50" class="wr4"><s:date format="yyyy-MM-dd" name="#salarylist.salarydate"/></td>
	          	<% if (grade == 2) { %>
	          	<td width="50" class="wr4">${salarylist.issent}</td>
	  			<td><a href="SalaryActionsettleSalary?said=${salarylist.said}">结算</a></td>
	  			<td><a href="SalaryActionmakeSend?said=${salarylist.said}">确认</a></td>
	  			<%} %>
	  	</tr>
	  	</s:iterator>
  	</table>
  </body>
</html>